<?php /*a:2:{s:72:"D:\phpStudy\PHPTutorial\WWW\UnionPay\application\bm\view\bank\index.html";i:1591606148;s:73:"D:\phpStudy\PHPTutorial\WWW\UnionPay\application\bm\view\common\base.html";i:1591607637;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>支付聚合 - 管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
    <script type="text/javascript" src="/static/layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">聚合平台管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    贤心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">银行管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('bm/bank/index'); ?>">银行列表</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="javascript:;">列表三</a></dd>
                        <dd><a href="<?php echo url('bm/bank/depot'); ?>">回收站</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">用户管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="<?php echo url('bm/user/index'); ?>">用户列表</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">回收站</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">商家管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">云市场</a></li>
                <li class="layui-nav-item"><a href="">发布商品</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            
<style>
    /*分页样式*/
    .pagination li{margin:0px 1px; padding: 1px 1px;display: inline-block;}
    .pagination .active span{ background-color: #1E9FFF; color: #fff;}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 15px;">
    <legend>银行列表</legend>
    <div style="margin-top: 10px">
        <div class="demoTable">
        <button class="layui-btn" style="float:left" onclick="location.href='<?php echo url('create'); ?>'">添加银行</button>
        <form action="" method="get" style="margin: 0 130px ">
            &nbsp;搜索银行：
            <div class="layui-inline">
                <input class="layui-input" name="name" id="name" autocomplete="off">
            </div>
            &nbsp;搜索简称：
            <div class="layui-inline">
                <input class="layui-input" name="abbr" id="abbr" autocomplete="off">
            </div>
            <button class="layui-btn layui-btn-normal" data-type="reload">搜索</button>
        </form>
        </div>
    </div>

</fieldset>

<table class="layui-table">
    <thead>
    <tr>
        <th>ID</th>
        <th>银行</th>
        <th>简称</th>
        <th>角色</th>
        <th>状态</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <tr>
        <td><?php echo htmlentities($vo['id']); ?></td>
        <td><?php echo htmlentities($vo['bank_name']); ?></td>
        <td><?php echo htmlentities($vo['bank_abbr']); ?></td>
        <td>管理组</td>
        <td>正常</td>
        <td><?php echo htmlentities(date("Y-m-d",!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></td>
        <td>
            <a href="<?php echo url('edit',array('id'=>$vo['id'])); ?>" class="layui-btn layui-btn-xs">编辑</a>
            <a href="<?php echo url('delete',array('id'=>$vo['id'])); ?>" class="layui-btn layui-btn-danger layui-btn-xs" onclick="return confirm('确定删除？')">删除</a>
        </td>
    </tr>
    <?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>
注：列表按数据变更时间排序，最新修改的数据排在前面
<div class="pages"><div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1"><?php echo $list; ?></div></div>

        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 银行支付聚合管理系统
    </div>
</div>

<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?d214947968792b839fd669a4decaaffc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>
